import { getToken, setToken,delToken } from '@/utlis/storage'
export default  {
    namespaced:true,
    state: {
        token:getToken(),
    },
    mutations:{
        setLogintoken(state,newtoken) {
            state.token = newtoken
            setToken(newtoken)
        },
        del(e) {
       e.token=null
            delToken()
        }

    },
    actions:{}
}

